package com.thingsgrid.device.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "topic_item")
public class TopicItem {
	/**
	 * topic名称
	 */
	@Field("topic_name")
	private String topicName;
	/**
	 * topic类
	 */
	@Field("topic_class")
	private String topicClass;
	/**
	 * 类型
	 */
	@Field("topic_type")
	private String topicType;
	/**
	 * 描述
	 */
	@Field("describe")
	private String desc;
	/**
	 * Topic权限
	 */
	@Field("topic_power")
	private String topicPower;

	/**
	 * 设备ID
	 */
	@Field("device_id")
	private String deviceId;

	/**
	 * topic内容
	 */
	@Field("topic_content")
	private String topicContent;
}
